package com.zwxu.cas.web.authentication.principal;

import java.io.Serializable;

import org.apache.commons.lang.StringUtils;
import org.jasig.cas.authentication.Credential;

public class CasCredential implements Credential, Serializable{
	private String username;
	
	private String password;

	

	public String getUsername() {
		return username;
	}



	public void setUsername(String username) {
		this.username = username;
	}



	public String getPassword() {
		return password;
	}



	public void setPassword(String password) {
		this.password = password;
	}



	@Override
	public String getId() {
		return StringUtils.isBlank(username) ? null : username;
	}
	
	
}
